FROM wangfeib12/centos6.5-sshd 
MAINTAINER weixw

ADD broker/ /usr/local/broker/

RUN yum install -y glib2-devel;yum clean all
RUN yum install -y openssl-devel;yum clean all
RUN yum install -y libuuid-devel;yum clean all
RUN yum install -y sysstat;yum clean all
RUN yum install -y lua-devel;yum clean all
RUN yum install -y lua-static;yum clean all
RUN yum install -y libpcap;yum clean all
RUN yum install -y libpcap-devel;yum clean all
RUN yum install -y libuuid-devel;yum clean all
RUN yum install -y tcpdump;yum clean all
RUN yum install -y wget;yum clean all
RUN yum install -y ntpdate;yum clean all
RUN yum install -y dos2unix;yum clean all
RUN yum install -y dmidecode;yum clean all
RUN yum install -y hdparm;yum clean all
RUN yum install -y unzip;yum clean all

RUN rpm -ivh /usr/local/broker/iftop-0.17-1.el6.rf.x86_64.rpm
RUN rpm -ivh /usr/local/broker/tcpreplay-4.1.1-1.el6.x86_64.rpm
RUN rpm -ivh /usr/local/broker/nginx-1.8.0-1.el6.ngx.x86_64.rpm 
RUN rpm -ivh /usr/local/broker/jemalloc-3.6.0-1.x86_64.rpm
RUN rpm -ivh /usr/local/broker/libevent-2.0.22-1.x86_64.rpm 
RUN rpm -ivh /usr/local/broker/libnet-1.2-rc3.x86_64.rpm 
RUN rpm -ivh /usr/local/broker/protobuf-2.5.0-1.x86_64.rpm
RUN rpm -ivh /usr/local/broker/protobuf-c-1.0.2-1.x86_64.rpm 
RUN rpm -ivh /usr/local/broker/zeromq-3.2.5-1.x86_64.rpm
RUN rpm -ivh /usr/local/broker/zlog-1.2.12-1.x86_64.rpm
RUN rpm -ivh /usr/local/broker/json-c-master-0.12-1.x86_64.rpm 
RUN rpm -ivh /usr/local/broker/daq-2.0.6-1.x86_64.rpm 
RUN rpm -ivh /usr/local/broker/lua-cjson-2.1.0-1.x86_64.rpm
RUN rpm -ivh /usr/local/broker/lpack-master-1.0.0-1.x86_64.rpm
RUN rpm -ivh /usr/local/broker/luaexpat-1.3.0-2.x86_64.rpm
RUN rpm -ivh /usr/local/broker/LuaJIT-2.0.4-1.x86_64.rpm 
RUN rpm -ivh /usr/local/broker/nghttp2-1.7.0-1.x86_64.rpm
RUN rpm -ivh /usr/local/broker/apm_initenv-2.0.2-1.x86_64.rpm

RUN rpm -Uvh /usr/local/broker/libxml2-2.9.0-1.x86_64.rpm

ADD jdk-8u91-linux-x64.tar.gz /usr/local/
ENV JAVA_HOME /usr/local/jdk1.8.0_91
ENV CLASSPATH .:$JAVA_HOME/lib/tools.jar
ENV PATH $JAVA_HOME/bin:$PATH

ADD before.sh /home/
RUN chmod +x /home/before.sh
RUN dos2unix /home/before.sh 












